﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ModelLayer;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ITicketCtrl" in both code and config file together.
[ServiceContract]
public interface ITicketCtrl
{
	[OperationContract]
	int addTicket(int scheduleId, int seatId);

	[OperationContract]
	bool removeTicket(int id);

	[OperationContract]
	bool updateTicket(int id, Schedule schedule, Seat seat);

	[OperationContract]
	Ticket getTicketById(int id);

	[OperationContract]
	Ticket[] getTickets();

	[OperationContract]
	Ticket[] getTicketsBySchedule(int scheduleId);
}
